Graphic objects and drawing elements > Property Panel > All properties and connections > ButtonAction
Select the type of action for the button:
If the button’s hold time is still in effect when the button is released, the second value is not sent until the hold time expires.